projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea1a2e
)
xend: Handle missing s3_integrity value, default to zero.
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 5 Mar 2009 17:50:05 +0000
(17:50 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 5 Mar 2009 17:50:05 +0000
(17:50 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/xend/XendDomainInfo.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendDomainInfo.py
b/tools/python/xen/xend/XendDomainInfo.py
index 9a217caa68fee3c8ba898148f21e3ccbf5374872..ec3ae99a8620ccbe92c1db23023240f2e8ae2f01 100644
(file)
--- a/
tools/python/xen/xend/XendDomainInfo.py
+++ b/
tools/python/xen/xend/XendDomainInfo.py
@@
-2212,7
+2212,9
@@
class XendDomainInfo:
if security.has_authorization(ssidref) == False:
raise VmError("VM is not authorized to run.")
- s3_integrity = self.info['s3_integrity']
+ s3_integrity = 0
+ if self.info.has_key('s3_integrity'):
+ s3_integrity = self.info['s3_integrity']
flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2)
try: